<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui">

	<ui:composition template="/templates/masterLayout.xhtml">
		<ui:define name="content">
			<h:form id="phieuThanhToanListFormId">
				<p:dataTable id="phieuThanhToanDataTableId" value="#{phieuThanhToanView.dataModel}"
					selection="#{phieuThanhToanView.selectedEntities}" paginator="true" var="entity" rows="10"
					paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
					lazy="true" paginatorPosition="bottom">
					<p:ajax event="rowDblselect" listener="#{phieuThanhToanView.editAction}" partialSubmit="true"
						oncomplete="phieuThanhToanDialog.show()" update=":phieuThanhToanDetailFormId" />
					<f:facet name="header">
						<p:commandButton icon="ui-icon-plus" value="Tạo mới" action="#{phieuThanhToanView.newAction}"
							actionListener="#{phieuThanhToanView.reset}" update=":phieuThanhToanDetailFormId"
							oncomplete="phieuThanhToanDialog.show()" style="float:left" />
						<div style="clear: both;" />
					</f:facet>

					<p:column selectionMode="multiple" style="width:1%" />

					<p:column headerText="MS đơn hàng">
						<h:outputText value="#{entity.donHang.code}" />
					</p:column>
					<p:column headerText="Số tiền">
						<h:outputText value="#{entity.soTien}" />
					</p:column>
					<p:column headerText="Thông tin">
						<h:outputText value="#{entity.thongTin}" />
					</p:column>
					<p:column headerText="Mã NV">
						<h:outputText value="#{entity.maNhanVien}" />
					</p:column>
					<p:column headerText="Loại">
						<h:outputText value="#{entity.loai}" />
					</p:column>
					<f:facet name="footer">
					</f:facet>
				</p:dataTable>
			</h:form>

			<ui:include src="phieuThanhToanDetails.xhtml" />
		</ui:define>
	</ui:composition>


</ui:composition>